home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / pc_board / gift4b16.zip / PRO-T.BAT < prev    next >
DOS Batch File  |  1992-09-04  |  688b  |  37 lines

  1. @echo off
  2. echo off
  3. rem -- pro-t.bat - process "test" archive request - for ProDOOR 3.4x
  4. rem -- %1-resultfile, %2 sourcefile
  5.  
  6. testfile %2 zip lzh gif
  7. if errorlevel == 98 goto cant_handle
  8. if errorlevel == 3 goto gif
  9. if errorlevel == 2 goto lzh
  10. if errorlevel == 1 goto zip
  11. goto end
  12.  
  13. :gif
  14. giftest %2 >>%1
  15. goto end
  16.  
  17. :zip
  18. ptest %2 %PCBDRIVE%%PCBDIR%\ptest.cfg
  19. if not exist %2 goto error
  20. goto end
  21.  
  22. :lzh
  23. ptest %2 %PCBDRIVE%%PCBDIR%\ptest.cfg
  24. if not exist %2 goto error
  25. goto end
  26.  
  27. :error
  28. echo. >>%1
  29. echo %2 has errors! >>%1
  30. echo %0: Error was detected while processing %2 ! >>%1
  31. goto end
  32.  
  33. :cant_handle
  34. echo Sorry, %0 does not know how to process %2 ! >>%1
  35.  
  36. :end
  37.